package gnmi

import (
	"sdn-executor/model/common"
)

type QueryCap struct {
	common.BaseQuery
}

type QueryGet struct {
	common.BaseQuery
	Xpath []string `json:"xpath"`
}

type QueryUpdate struct {
	common.BaseQuery
	Xpath   string `json:"xpath"`
	Content any
}

type QueryReplace struct {
	common.BaseQuery
	Xpath   string `json:"xpath"`
	Content any
}

type QueryDelete struct {
	common.BaseQuery
	Xpath string `json:"xpath"`
}

type Result struct {
	Code      int
	Msg       string
	RequestId string
	Status    common.ExecStatus
	Response  any
}
